<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>

<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>PMS项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
	<link type="text/css" href="css/mycss.css" rel="stylesheet"/>
</head>
<body class="body">
	<%@ include file="include/top.jsp" %>
	
	<div class="container">
		<div class="row">
		
			<jsp:include page="include/side.jsp">
				<jsp:param value="goal" name="tag"/>
			</jsp:include>
			<div class="span9">
				<%
					Goal g = (Goal)session.getAttribute(Const.CURRENT_GOAL_IN_SESSION);
					List<Task> taskList = (List<Task>)session.getAttribute(Const.TASK_IN_SESSION);
				 %>
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="javascript:;"><i class="icon-th"></i><%=g.getG_name() %></a>
					</li>
					<li style="float:right">
						<a href="goal.jspx?_g=edit" class="link_black"><i class="icon-edit"></i>编辑</a>
					</li>
				</ul>
				
				<div class="wall">		
					<!--<p>北京市公安局有关负责人表示，利用互联网编造、传播谣言的行为严重扰乱社会秩序、影响社会稳定、危害社会诚信，公安机关对此将依法查处。希望广大网民自觉遵守法律北京市公安局有关负责人表示，利用互联网编造、传播谣言的行为严重扰乱社会秩序、影响社会稳定、危害社会诚信，公安机关对此将依法查处。希望广大网民自觉遵守法律北京市公安局有关负责人表示，利用互联网编造、传播谣言的行为严重扰乱社会秩序、影响社会稳定、危害社会诚信，公安机关对此将依法查处。希望广大网民自觉遵守法律</p>-->
					<p><%=g.getG_describle() %></p>
					<div class="progress progress-danger">
						<div class="bar" style="width:<%=g.getG_rate() %>";>当前目标总进度完成<%=g.getG_rate() %></div>
					</div>
					
					<div class="page-header">
						<a href="task.jspx?_t=new_task" class="btn btn-success"><i class="icon-plus icon-white"></i>添加新任务</a>
					</div>
					
					<dl>
						<%
							for(Task t : taskList){
						 %>
						<dt><i class="icon-bookmark"></i><a href="edit_task.html"><%=t.getT_name() %></a>&nbsp;&nbsp;&nbsp;[<%=t.getT_member() %>]</dt>
						<dd><%=t.getT_describle() %></dd>
        			
						<div class="progress ${t.t_rate == '100%' ? 'progress-success' : '' }">
						  <div class="bar" style="width:<%=t.getT_rate() %>;"><%=t.getT_rate() %></div>
						</div>
						<%} %>

						<!--<dt style="margin-top:15px"><i class="icon-bookmark"></i><a href="#">写DAO和Services类</a>&nbsp;&nbsp;&nbsp;[金泰熙]</dt>
							<dd>Vestibulum id ligula porta felis euismod semper eget lacinia odio sem nec elit.</dd>
						<div class="progress progress-success">
						  <div class="bar" style="width:100%;">100%</div>
						</div>
						-->
					</dl>
				</div>
			</div>
		</div>
	</div>
						
	<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</body>
</html>